package com.carpedil.boot.mapper;

import com.carpedil.boot.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/** @author Administrator */
@Repository
public interface UserMapper {
  List<User> getUsers();

  int registerUser(User user);

  User getUserByUserNameAndPassword(
      @Param("username") String username, @Param("password") String password);

  User getUserByUserName(@Param("username") String username);
}
